Skip to content

feat: fix mobile header shrink, add OIDC UserInfo fallback, and build Playwright E2E suite - #9

Merged
tracyhatemice merged 10 commits into
masterfrom
feat/mobile-header-e2e-suite
Nov 29, 2026
Merged

tracyhatemice merged 10 commits into
masterfrom
feat/mobile-header-e2e-suite

Conversation

@tracyhatemice

Copy link
Copy Markdown
Owner

Summary

Mobile UI & Component Fixes

  • Mobile top-bar height fix (ui/src/components/PageHeader.svelte): Added shrink-0 to <header> so <main class="flex flex-col overflow-y-auto"> no longer compresses the 48px mobile header on tall scrolling views; added an AST regression test in ui/src/lib/viewEffects.test.js.
  • ActionMenu Svelte 5 event delegation fix (ui/src/components/ActionMenu.svelte): Replaced imperative menuEl.addEventListener("click", (e) => e.stopPropagation()) (which blocked Svelte 5's root-delegated onclick handlers on menu items) with Svelte-delegated onclick={(e) => e.stopPropagation()}; caught by the E2E suite and covered by a regression test in ui/src/lib/viewEffects.test.js.

Auth & DDNS Runtime Improvements

  • OIDC Core §5.3.4 UserInfo fallback (internal/auth/oidc.go): When ID token claims omit email, email_verified, or name (such as stock Authelia 4.39+), hydrate missing claims from the OIDC UserInfo endpoint with constant-time sub verification and a cross-email email_verified guard.
  • Optional DDNS endpoint override (main.go): Added --ddns-endpoint / WHO_DDNS_ENDPOINT so Route53 requests can be routed to a local mock sink in E2E tests while preserving the AWS default.

Full-Stack Playwright E2E Suite & CI Integration

  • Self-contained Docker Compose E2E stack (e2e/):
    • traefik:v3.6 (127.0.0.1:18443 with app.who.localhost / auth.who.localhost), ghcr.io/glauth/glauth:v2.5.4, authelia/authelia:4.39 (stock OIDC + PKCE S256), who (built from Dockerfile), and mock-sink (127.0.0.1:19999) capturing live Route53 XML UPSERT and webhook requests.
    • Ephemeral CA/TLS/RSA JWKS generator (e2e/scripts/prepare.mjs) and lifecycle runner (e2e/scripts/run.sh) with trap-based teardown; e2e excluded from Docker build context via .dockerignore.
  • Playwright suites (e2e/tests/, 5 projects, 23 tests):
    • Auth setup & security boundaries (unauthenticated HTML shell zero-JS check, /assets/* 401, /api/v1/* 401, disallowed OIDC user denial, login/logout session revocation).
    • Public endpoints (/healthz, /whoami, /whoami/headers, /iam/{name}, /iam/{name}/{ip}, /whois/{name}, per-record bearer/header/query token auth).
    • Desktop UI navigation, keyboard shortcuts, theme persistence, zero idle polling, Records & Drawer CRUD/aliases/tokens/history, live DDNS (Provider Secrets masking + Route53 SigV4 XML capture) / Webhooks / Touch Files side effects + pause toggle, Access & Audit Logs filtering/pagination/Top breakdown, and Settings retention/backup/sessions.
    • Mobile (390×844) header-height stability before/after scroll across tall views, zero horizontal overflow, and hamburger navigation drawer.
  • Tooling & CI: Added make e2e, make e2e-up, make e2e-down, updated README.md, added UI checks to CI test, and added an e2e job in .github/workflows/docker-build.yml gating build-and-push.

Verification

  • golangci-lint run: 0 issues
  • go test -count=1 -race -cover ./...: all 6 packages pass
  • pnpm --dir ui run check: 30/30 tests pass + build succeeds
  • bash e2e/scripts/run.sh: 23/23 Playwright tests pass across all 5 projects with clean container teardown

@tracyhatemice
tracyhatemice merged commit 07da176 into master Nov 29, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant